package cn.webrx;

public class Str2 {
    public static void main(String[] args) {
        String s1 = "ok";
        String s2 = "ok";
        String s3 = new String("ok");
        String s4 = new String("ok");
        String s5 = new String("Ok");
        System.out.println(s1 == s2);//true
        System.out.println(s3 == s4);//false
        System.out.println(s4 == s5);//false

        System.out.println(s1.equals(s2));//true
        System.out.println(s2.equals(s3));//true
        System.out.println(s3.equals(s4));//true
        System.out.println(s4.equals(s5));//false
        System.out.println(s4.equalsIgnoreCase(s5));//true

        String a = "admin"; //Admin
        String p = "admin123";




    }

}
